<template>
	<view class="index">
		<image class="indeximg" src="/static/sy.png"></image>
		<view class="indexuser">
			<view class="user">
				<image src="/static/download.avif" mode=""></image>
				<text>用户名称</text>
			</view>
		</view>
		<image class="indeximg2" src="/static/guanggao.png"></image>
		<view class="footer">
			<view class="footer1">为提供优质服务，我们需获取您的公开信息（昵称、头像）</view>
			<view class="footer2" @click="navTo">开始使用</view>
			<view class="footer3">
				<uni-data-checkbox v-model="hobby" multiple :localdata="hobbys" />
				阅读并同意《隐私协议》《用户协议》
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				hobbys: [{
					text: '',
					value: 0
				}],
				hobby: []
			}
		},
		onLoad() {

		},
		methods: {
			navTo() {
				uni.navigateTo({
					url: '/pages/index/Upload'
				})
			}

		}
	}
</script>

<style lang="less">
	.index {
		width: 100%;
		min-height: 100vh;
		position: relative;

		.indeximg {
			width: 100%;
			height: 378rpx;
		}

		.indexuser {
			width: 686rpx;
			height: 134rpx;
			background: linear-gradient(to bottom, #C5B9B3, #F4F4F4, #FFFFFF);
			border-radius: 20rpx;
			position: absolute;
			top: 310rpx;
			left: 34rpx;
			z-index: 99;
			box-shadow: 0 0 10rpx #888888;

			.user {
				width: 100%;
				height: 134rpx;
				padding: 20rpx;
				box-sizing: border-box;
				display: flex;
				align-items: center;

				image {
					width: 76rpx;
					height: 76rpx;
					border-radius: 50%;
					margin-right: 20rpx;
				}

				text {
					font-size: 30rpx;
					font-weight: bold;
					color: #333333;
				}
			}
		}

		.indeximg2 {
			width: 686rpx;
			height: 540rpx;
			margin-top: 100rpx;
			margin-left: 32rpx;
			box-shadow: 0 1rpx 12rpx #888888;
			border-radius: 8px;
		}

		.footer {
			width: 686rpx;
			position: absolute;
			bottom: 10rpx;
			margin-left: 32rpx;
			margin-top: 70rpx;

			.footer1 {
				width: 100%;
				font-size: 24rpx;
				font-weight: 400;
				color: #999999;
				margin-bottom: 20rpx;
			}

			.footer2 {
				width: 686rpx;
				height: 88rpx;
				background: #20497B;
				box-shadow: 0rpx 8rpx 24rpx 0rpx rgba(22, 61, 110, 0.34);
				border-radius: 16rpx;
				text-align: center;
				line-height: 88rpx;
				font-size: 30rpx;
				font-weight: bold;
				color: #FFFFFF;
				margin-bottom: 10rpx;
			}

			.footer3 {
				width: 100%;
				font-size: 24rpx;
				font-weight: 400;
				color: #999999;
				display: flex;
				align-items: center;
			}

			/deep/.uni-data-checklist .checklist-group .checklist-box {
				margin-right: 0rpx;
			}
		}
	}
</style>